package com.appwoo.txtws.service;

import android.content.Context;
import android.util.Xml;
import com.appwoo.android.exception.NotFoundNetWorkException;
import com.appwoo.android.exception.TimeOutException;
import com.appwoo.android.util.DateHelper;
import com.appwoo.android.util.PullIO;
import com.appwoo.txtws.bean.Anal_Soft_Bean;
import com.appwoo.txtws.bean.Limit_SoftBean;
import com.appwoo.txtws.bean.Record_SoftBean;
import com.appwoo.txtws.bean.SoftTypeBean;
import com.appwoo.txtws.bean.StateBean;
import com.appwoo.txtws.bean.WebTypeBean;
import com.appwoo.txtws.component.GetDateTime;
import com.appwoo.txtws.component.Logger;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

public class SoftLimitService
{
  public StateBean addLimitSoft(String paramString1, String paramString2, Anal_Soft_Bean paramAnal_Soft_Bean, Context paramContext)
    throws IOException, XmlPullParserException, TimeOutException, NotFoundNetWorkException
  {
    String str1 = "";
    if (paramAnal_Soft_Bean != null)
      str1 = str1 + "<List><GameName>" + paramAnal_Soft_Bean.getGameName() + "</GameName><ProcName>" + paramAnal_Soft_Bean.getProcName() + "</ProcName><Author>" + paramAnal_Soft_Bean.getAuthor() + "</Author><UpdateTime>" + GetDateTime.getDateTime() + "</UpdateTime></List>";
    StateBean localStateBean = new StateBean();
    String str2 = new MsgService().sendMessage(paramString1, paramString2, "<?xml version=\"1.0\" encoding=\"utf-8\" ?><MSG><HEAD><SNDR>" + paramString1 + "</SNDR> <RCVR>SYS</RCVR>" + " <SEQN>1</SEQN><DTTM>" + GetDateTime.getDateTime() + "</DTTM><TYPE>" + "DLGameRuleSelf</TYPE></HEAD><BODY>" + str1 + "</BODY></MSG>", paramContext);
    Object localObject = Xml.newPullParser();
    int i;
    try
    {
      XmlPullParser localXmlPullParser = PullIO.getPullByString(str2);
      localObject = localXmlPullParser;
      i = ((XmlPullParser)localObject).getEventType();
      if (i == 1)
        return localStateBean;
    }
    catch (NullPointerException localNullPointerException)
    {
      while (true)
        localNullPointerException.printStackTrace();
      switch (i)
      {
      case 1:
      default:
      case 0:
      case 2:
      }
    }
    while (true)
    {
      i = ((XmlPullParser)localObject).next();
      break;
      localStateBean = new StateBean();
      continue;
      if (((XmlPullParser)localObject).getName().equalsIgnoreCase("Code"))
        localStateBean.setCode(((XmlPullParser)localObject).nextText());
      else if (((XmlPullParser)localObject).getName().equalsIgnoreCase("Desc"))
        localStateBean.setDesc(((XmlPullParser)localObject).nextText());
    }
  }

  public StateBean addLimitSoft(String paramString1, String paramString2, Record_SoftBean paramRecord_SoftBean, Context paramContext)
    throws IOException, XmlPullParserException, TimeOutException, NotFoundNetWorkException
  {
    String str1 = "";
    if (paramRecord_SoftBean != null)
      str1 = str1 + "<List><GameName>" + paramRecord_SoftBean.getGameName() + "</GameName><ProcName>" + paramRecord_SoftBean.getProcName() + "</ProcName><Author>" + paramRecord_SoftBean.getAuthor() + "</Author><UpdateTime>" + GetDateTime.getDateTime() + "</UpdateTime></List>";
    StateBean localStateBean = new StateBean();
    String str2 = new MsgService().sendMessage(paramString1, paramString2, "<?xml version=\"1.0\" encoding=\"utf-8\" ?><MSG><HEAD><SNDR>" + paramString1 + "</SNDR> <RCVR>SYS</RCVR>" + " <SEQN>1</SEQN><DTTM>" + GetDateTime.getDateTime() + "</DTTM><TYPE>" + "ADGameRuleSelf</TYPE></HEAD><BODY>" + str1 + "</BODY></MSG>", paramContext);
    Object localObject = Xml.newPullParser();
    int i;
    try
    {
      XmlPullParser localXmlPullParser = PullIO.getPullByString(str2);
      localObject = localXmlPullParser;
      i = ((XmlPullParser)localObject).getEventType();
      if (i == 1)
        return localStateBean;
    }
    catch (NullPointerException localNullPointerException)
    {
      while (true)
        localNullPointerException.printStackTrace();
      switch (i)
      {
      case 1:
      default:
      case 0:
      case 2:
      }
    }
    while (true)
    {
      i = ((XmlPullParser)localObject).next();
      break;
      localStateBean = new StateBean();
      continue;
      if (((XmlPullParser)localObject).getName().equalsIgnoreCase("Code"))
        localStateBean.setCode(((XmlPullParser)localObject).nextText());
      else if (((XmlPullParser)localObject).getName().equalsIgnoreCase("Desc"))
        localStateBean.setDesc(((XmlPullParser)localObject).nextText());
    }
  }

  public StateBean addLimitSoft(String paramString1, String paramString2, String paramString3, Context paramContext)
    throws IOException, XmlPullParserException, TimeOutException, NotFoundNetWorkException
  {
    String str1 = "";
    if (paramString3 != null)
      str1 = str1 + "<List><GameName>" + paramString3 + "</GameName><ProcName>" + "</ProcName><Author>" + "</Author><UpdateTime>" + GetDateTime.getDateTime() + "</UpdateTime></List>";
    StateBean localStateBean = new StateBean();
    String str2 = new MsgService().sendMessage(paramString1, paramString2, "<?xml version=\"1.0\" encoding=\"utf-8\" ?><MSG><HEAD><SNDR>" + paramString1 + "</SNDR> <RCVR>SYS</RCVR>" + " <SEQN>1</SEQN><DTTM>" + GetDateTime.getDateTime() + "</DTTM><TYPE>" + "DLGameRuleSelf</TYPE></HEAD><BODY>" + str1 + "</BODY></MSG>", paramContext);
    Object localObject = Xml.newPullParser();
    int i;
    try
    {
      XmlPullParser localXmlPullParser = PullIO.getPullByString(str2);
      localObject = localXmlPullParser;
      i = ((XmlPullParser)localObject).getEventType();
      if (i == 1)
        return localStateBean;
    }
    catch (NullPointerException localNullPointerException)
    {
      while (true)
        localNullPointerException.printStackTrace();
      switch (i)
      {
      case 1:
      default:
      case 0:
      case 2:
      }
    }
    while (true)
    {
      i = ((XmlPullParser)localObject).next();
      break;
      localStateBean = new StateBean();
      continue;
      if (((XmlPullParser)localObject).getName().equalsIgnoreCase("Code"))
        localStateBean.setCode(((XmlPullParser)localObject).nextText());
      else if (((XmlPullParser)localObject).getName().equalsIgnoreCase("Desc"))
        localStateBean.setDesc(((XmlPullParser)localObject).nextText());
    }
  }

  public StateBean delCommit(String paramString1, String paramString2, List<WebTypeBean> paramList, Context paramContext)
    throws IOException, XmlPullParserException, TimeOutException, NotFoundNetWorkException
  {
    StateBean localStateBean = null;
    MsgService localMsgService = new MsgService();
    String str1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><MSG><HEAD><SNDR>" + paramString1 + "</SNDR>" + "<TYPE>DLUrlRuleSelf</TYPE></HEAD><BODY><BID>" + paramString2 + "</BID>";
    Iterator localIterator = paramList.iterator();
    Object localObject;
    int i;
    while (true)
    {
      String str3;
      if (!localIterator.hasNext())
      {
        String str2 = str1 + "</BODY></MSG>";
        str3 = localMsgService.sendMessage(paramString1, str2, paramContext);
        Logger.d("xjf", "del-netblack-msg:" + str2);
        Logger.d("xjf", "del-netblack-str:" + str3);
        localObject = Xml.newPullParser();
      }
      try
      {
        XmlPullParser localXmlPullParser = PullIO.getPullByString(str3);
        localObject = localXmlPullParser;
        i = ((XmlPullParser)localObject).getEventType();
        if (i == 1)
        {
          return localStateBean;
          WebTypeBean localWebTypeBean = (WebTypeBean)localIterator.next();
          str1 = str1 + "<List><UrlBlack>" + localWebTypeBean.getURL() + "</UrlBlack></List>";
        }
      }
      catch (NullPointerException localNullPointerException)
      {
        while (true)
          localNullPointerException.printStackTrace();
        switch (i)
        {
        case 1:
        default:
        case 0:
        case 2:
        }
      }
    }
    while (true)
    {
      i = ((XmlPullParser)localObject).next();
      break;
      localStateBean = new StateBean();
      continue;
      if (((XmlPullParser)localObject).getName().equalsIgnoreCase("Code"))
        localStateBean.setCode(((XmlPullParser)localObject).nextText());
      else if (((XmlPullParser)localObject).getName().equalsIgnoreCase("Desc"))
        localStateBean.setDesc(((XmlPullParser)localObject).nextText());
    }
  }

  public StateBean delCommitgame(String paramString1, String paramString2, List<Record_SoftBean> paramList, Context paramContext)
    throws IOException, XmlPullParserException, TimeOutException, NotFoundNetWorkException
  {
    StateBean localStateBean = null;
    MsgService localMsgService = new MsgService();
    String str1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><MSG><HEAD><SNDR>" + paramString1 + "</SNDR>" + "<TYPE>DLGameRuleSelf</TYPE></HEAD><BODY><BID>" + paramString2 + "</BID>";
    Iterator localIterator = paramList.iterator();
    Object localObject;
    int i;
    while (true)
    {
      String str2;
      if (!localIterator.hasNext())
      {
        str2 = localMsgService.sendMessage(paramString1, str1 + "</BODY></MSG>", paramContext);
        localObject = Xml.newPullParser();
      }
      try
      {
        XmlPullParser localXmlPullParser = PullIO.getPullByString(str2);
        localObject = localXmlPullParser;
        i = ((XmlPullParser)localObject).getEventType();
        if (i == 1)
        {
          return localStateBean;
          Record_SoftBean localRecord_SoftBean = (Record_SoftBean)localIterator.next();
          str1 = str1 + "<List><GameName>" + localRecord_SoftBean.getGameName() + "</GameName><ProcName>" + localRecord_SoftBean.getProcName() + "</ProcName><Author>" + localRecord_SoftBean.getAuthor() + "</Author>" + "<Type>" + localRecord_SoftBean.getType() + "</Type>" + "<SHA1>" + localRecord_SoftBean.getSha1() + "</SHA1>" + "<Path>" + localRecord_SoftBean.getPath() + "</Path>" + "</List>";
        }
      }
      catch (NullPointerException localNullPointerException)
      {
        while (true)
          localNullPointerException.printStackTrace();
        switch (i)
        {
        case 1:
        default:
        case 0:
        case 2:
        }
      }
    }
    while (true)
    {
      i = ((XmlPullParser)localObject).next();
      break;
      localStateBean = new StateBean();
      continue;
      if (((XmlPullParser)localObject).getName().equalsIgnoreCase("Code"))
        localStateBean.setCode(((XmlPullParser)localObject).nextText());
      else if (((XmlPullParser)localObject).getName().equalsIgnoreCase("Desc"))
        localStateBean.setDesc(((XmlPullParser)localObject).nextText());
    }
  }

  public List<Record_SoftBean> getQLimitSoftByDate(String paramString1, String paramString2, String paramString3, int paramInt, Context paramContext)
    throws IOException, XmlPullParserException, TimeOutException, NotFoundNetWorkException
  {
    Object localObject1 = null;
    Record_SoftBean localRecord_SoftBean = null;
    MsgService localMsgService = new MsgService();
    if ((paramString3 == null) || ("".equals(paramString3)))
      paramString3 = DateHelper.getNowDate();
    String str = localMsgService.sendMessage(paramString1, paramString2, "<?xml version=\"1.0\" encoding=\"utf-8\" ?><MSG><HEAD><SNDR>" + paramString1 + "</SNDR> <RCVR>SYS</RCVR>" + " <SEQN>1</SEQN><DTTM>" + GetDateTime.getDateTime() + "</DTTM><TYPE>" + "RQGameAccess</TYPE></HEAD><BODY><DataDate>" + paramString3 + "</DataDate><Allowed>2</Allowed><PageIndex>" + paramInt + "</PageIndex><PageSize>" + 10 + "</PageSize></BODY></MSG>", paramContext);
    Object localObject2 = Xml.newPullParser();
    int i;
    try
    {
      XmlPullParser localXmlPullParser = PullIO.getPullByString(str);
      localObject2 = localXmlPullParser;
      i = ((XmlPullParser)localObject2).getEventType();
      if (i == 1)
        return localObject1;
    }
    catch (NullPointerException localNullPointerException)
    {
      while (true)
        localNullPointerException.printStackTrace();
      switch (i)
      {
      case 1:
      default:
      case 0:
      case 2:
      case 3:
      }
    }
    while (true)
    {
      i = ((XmlPullParser)localObject2).next();
      break;
      localObject1 = new ArrayList();
      continue;
      if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("List"))
        localRecord_SoftBean = new Record_SoftBean();
      if (localRecord_SoftBean != null)
        if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("GameName"))
        {
          localRecord_SoftBean.setGameName(((XmlPullParser)localObject2).nextText());
        }
        else if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("Allowed"))
        {
          localRecord_SoftBean.setAllowed(((XmlPullParser)localObject2).nextText());
        }
        else if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("Num"))
        {
          localRecord_SoftBean.setNum(((XmlPullParser)localObject2).nextText());
        }
        else if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("VisitedTime"))
        {
          localRecord_SoftBean.setVisitedTime(((XmlPullParser)localObject2).nextText());
        }
        else if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("ProcName"))
        {
          localRecord_SoftBean.setProcName(((XmlPullParser)localObject2).nextText());
        }
        else if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("Author"))
        {
          localRecord_SoftBean.setAuthor(((XmlPullParser)localObject2).nextText());
          continue;
          if ((((XmlPullParser)localObject2).getName().equalsIgnoreCase("List")) && (localObject1 != null) && (localRecord_SoftBean != null))
          {
            ((List)localObject1).add(localRecord_SoftBean);
            localRecord_SoftBean = null;
          }
        }
    }
  }

  public List<Limit_SoftBean> getSoftListByType(String paramString1, String paramString2, String paramString3, int paramInt, Context paramContext)
    throws IOException, XmlPullParserException, TimeOutException, NotFoundNetWorkException
  {
    Object localObject1 = null;
    Limit_SoftBean localLimit_SoftBean = null;
    String str = new MsgService().sendMessage(paramString1, paramString2, "<?xml version=\"1.0\" encoding=\"utf-8\" ?><MSG><HEAD><SNDR>" + paramString1 + "</SNDR> <RCVR>SYS</RCVR>" + " <SEQN>1</SEQN><DTTM>" + GetDateTime.getDateTime() + "</DTTM><TYPE>" + "RQGameRuleSelf</TYPE></HEAD><BODY><GameType>" + paramString3 + "</GameType><PageIndex>" + paramInt + "</PageIndex><PageSize>" + 10 + "</PageSize></BODY></MSG>", paramContext);
    Object localObject2 = Xml.newPullParser();
    int i;
    try
    {
      XmlPullParser localXmlPullParser = PullIO.getPullByString(str);
      localObject2 = localXmlPullParser;
      i = ((XmlPullParser)localObject2).getEventType();
      if (i == 1)
        return localObject1;
    }
    catch (NullPointerException localNullPointerException)
    {
      while (true)
        localNullPointerException.printStackTrace();
      switch (i)
      {
      case 1:
      default:
      case 0:
      case 2:
      case 3:
      }
    }
    while (true)
    {
      i = ((XmlPullParser)localObject2).next();
      break;
      localObject1 = new ArrayList();
      continue;
      if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("List"))
        localLimit_SoftBean = new Limit_SoftBean();
      if (localLimit_SoftBean != null)
        if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("GameName"))
        {
          localLimit_SoftBean.setGameName(((XmlPullParser)localObject2).nextText());
        }
        else if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("ProcName"))
        {
          localLimit_SoftBean.setProcName(((XmlPullParser)localObject2).nextText());
        }
        else if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("Author"))
        {
          localLimit_SoftBean.setAuthor(((XmlPullParser)localObject2).nextText());
        }
        else if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("UpdateTime"))
        {
          localLimit_SoftBean.setUpdateTime(((XmlPullParser)localObject2).nextText());
          continue;
          if ((((XmlPullParser)localObject2).getName().equalsIgnoreCase("List")) && (localObject1 != null) && (localLimit_SoftBean != null))
          {
            ((List)localObject1).add(localLimit_SoftBean);
            localLimit_SoftBean = null;
          }
        }
    }
  }

  public List<SoftTypeBean> getSoftType(String paramString1, String paramString2, int paramInt, Context paramContext)
    throws IOException, XmlPullParserException, TimeOutException, NotFoundNetWorkException
  {
    Object localObject1 = null;
    SoftTypeBean localSoftTypeBean = null;
    String str = new MsgService().sendMessage(paramString1, paramString2, "<?xml version=\"1.0\" encoding=\"utf-8\" ?><MSG><HEAD><SNDR>" + paramString1 + "</SNDR> <RCVR>SYS</RCVR>" + " <SEQN>1</SEQN><DTTM>" + GetDateTime.getDateTime() + "</DTTM><TYPE>" + "RQGameType</TYPE></HEAD><BODY><DataDate>" + DateHelper.getNowDate() + "</DataDate><PageIndex>" + paramInt + "</PageIndex><PageSize>" + 10 + "</PageSize></BODY></MSG>", paramContext);
    Object localObject2 = Xml.newPullParser();
    int i;
    try
    {
      XmlPullParser localXmlPullParser = PullIO.getPullByString(str);
      localObject2 = localXmlPullParser;
      i = ((XmlPullParser)localObject2).getEventType();
      if (i == 1)
        return localObject1;
    }
    catch (NullPointerException localNullPointerException)
    {
      while (true)
        localNullPointerException.printStackTrace();
      switch (i)
      {
      case 1:
      default:
      case 0:
      case 2:
      case 3:
      }
    }
    while (true)
    {
      i = ((XmlPullParser)localObject2).next();
      break;
      localObject1 = new ArrayList();
      continue;
      if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("List"))
        localSoftTypeBean = new SoftTypeBean();
      if (localSoftTypeBean != null)
        if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("TypeID"))
        {
          localSoftTypeBean.setTypeID(((XmlPullParser)localObject2).nextText());
        }
        else if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("TypeName"))
        {
          localSoftTypeBean.setTypeName(((XmlPullParser)localObject2).nextText());
          continue;
          if ((((XmlPullParser)localObject2).getName().equalsIgnoreCase("List")) && (localObject1 != null) && (localSoftTypeBean != null))
          {
            ((List)localObject1).add(localSoftTypeBean);
            localSoftTypeBean = null;
          }
        }
    }
  }

  public StateBean reduceLimitSoft(String paramString1, String paramString2, Anal_Soft_Bean paramAnal_Soft_Bean, Context paramContext)
    throws IOException, XmlPullParserException, TimeOutException, NotFoundNetWorkException
  {
    String str1 = "";
    if (paramAnal_Soft_Bean != null)
      str1 = str1 + "<List><GameName>" + paramAnal_Soft_Bean.getGameName() + "</GameName><ProcName>" + paramAnal_Soft_Bean.getProcName() + "</ProcName><Author>" + paramAnal_Soft_Bean.getAuthor() + "</Author></List>";
    StateBean localStateBean = new StateBean();
    String str2 = new MsgService().sendMessage(paramString1, paramString2, "<?xml version=\"1.0\" encoding=\"utf-8\" ?><MSG><HEAD><SNDR>" + paramString1 + "</SNDR> <RCVR>SYS</RCVR>" + " <SEQN>1</SEQN><DTTM>" + GetDateTime.getDateTime() + "</DTTM><TYPE>" + "DLGameRuleSelf</TYPE></HEAD><BODY>" + str1 + "</BODY></MSG>", paramContext);
    Object localObject = Xml.newPullParser();
    int i;
    try
    {
      XmlPullParser localXmlPullParser = PullIO.getPullByString(str2);
      localObject = localXmlPullParser;
      i = ((XmlPullParser)localObject).getEventType();
      if (i == 1)
        return localStateBean;
    }
    catch (NullPointerException localNullPointerException)
    {
      while (true)
        localNullPointerException.printStackTrace();
      switch (i)
      {
      case 1:
      default:
      case 0:
      case 2:
      }
    }
    while (true)
    {
      i = ((XmlPullParser)localObject).next();
      break;
      localStateBean = new StateBean();
      continue;
      if (((XmlPullParser)localObject).getName().equalsIgnoreCase("Code"))
        localStateBean.setCode(((XmlPullParser)localObject).nextText());
      else if (((XmlPullParser)localObject).getName().equalsIgnoreCase("Desc"))
        localStateBean.setDesc(((XmlPullParser)localObject).nextText());
    }
  }

  public StateBean reduceLimitSoft(String paramString1, String paramString2, Limit_SoftBean paramLimit_SoftBean, Context paramContext)
    throws IOException, XmlPullParserException, TimeOutException, NotFoundNetWorkException
  {
    String str1 = "";
    if (paramLimit_SoftBean != null)
      str1 = str1 + "<List><GameName>" + paramLimit_SoftBean.getGameName() + "</GameName><ProcName>" + paramLimit_SoftBean.getProcName() + "</ProcName><Author>" + paramLimit_SoftBean.getAuthor() + "</Author></List>";
    StateBean localStateBean = new StateBean();
    String str2 = new MsgService().sendMessage(paramString1, paramString2, "<?xml version=\"1.0\" encoding=\"utf-8\" ?><MSG><HEAD><SNDR>" + paramString1 + "</SNDR> <RCVR>SYS</RCVR>" + " <SEQN>1</SEQN><DTTM>" + GetDateTime.getDateTime() + "</DTTM><TYPE>" + "DLGameRuleSelf</TYPE></HEAD><BODY>" + str1 + "</BODY></MSG>", paramContext);
    Object localObject = Xml.newPullParser();
    int i;
    try
    {
      XmlPullParser localXmlPullParser = PullIO.getPullByString(str2);
      localObject = localXmlPullParser;
      i = ((XmlPullParser)localObject).getEventType();
      if (i == 1)
        return localStateBean;
    }
    catch (NullPointerException localNullPointerException)
    {
      while (true)
        localNullPointerException.printStackTrace();
      switch (i)
      {
      case 1:
      default:
      case 0:
      case 2:
      }
    }
    while (true)
    {
      i = ((XmlPullParser)localObject).next();
      break;
      localStateBean = new StateBean();
      continue;
      if (((XmlPullParser)localObject).getName().equalsIgnoreCase("Code"))
        localStateBean.setCode(((XmlPullParser)localObject).nextText());
      else if (((XmlPullParser)localObject).getName().equalsIgnoreCase("Desc"))
        localStateBean.setDesc(((XmlPullParser)localObject).nextText());
    }
  }

  public StateBean reduceLimitSoft(String paramString1, String paramString2, List<Limit_SoftBean> paramList, Context paramContext)
    throws IOException, XmlPullParserException, TimeOutException, NotFoundNetWorkException
  {
    String str1 = "";
    Iterator localIterator;
    if (paramList != null)
      localIterator = paramList.iterator();
    StateBean localStateBean;
    Object localObject;
    int i;
    while (true)
    {
      String str2;
      if (!localIterator.hasNext())
      {
        localStateBean = new StateBean();
        str2 = new MsgService().sendMessage(paramString1, paramString2, "<?xml version=\"1.0\" encoding=\"utf-8\" ?><MSG><HEAD><SNDR>" + paramString1 + "</SNDR> <RCVR>SYS</RCVR>" + " <SEQN>1</SEQN><DTTM>" + GetDateTime.getDateTime() + "</DTTM><TYPE>" + "DLGameRuleSelf</TYPE></HEAD><BODY>" + str1 + "</BODY></MSG>", paramContext);
        localObject = Xml.newPullParser();
      }
      try
      {
        XmlPullParser localXmlPullParser = PullIO.getPullByString(str2);
        localObject = localXmlPullParser;
        i = ((XmlPullParser)localObject).getEventType();
        if (i == 1)
        {
          return localStateBean;
          Limit_SoftBean localLimit_SoftBean = (Limit_SoftBean)localIterator.next();
          str1 = str1 + "<List><GameName>" + localLimit_SoftBean.getGameName() + "</GameName><ProcName>" + localLimit_SoftBean.getProcName() + "</ProcName><Author>" + localLimit_SoftBean.getAuthor() + "</Author></List>";
        }
      }
      catch (NullPointerException localNullPointerException)
      {
        while (true)
          localNullPointerException.printStackTrace();
        switch (i)
        {
        case 1:
        default:
        case 0:
        case 2:
        }
      }
    }
    while (true)
    {
      i = ((XmlPullParser)localObject).next();
      break;
      localStateBean = new StateBean();
      continue;
      if (((XmlPullParser)localObject).getName().equalsIgnoreCase("Code"))
        localStateBean.setCode(((XmlPullParser)localObject).nextText());
      else if (((XmlPullParser)localObject).getName().equalsIgnoreCase("Desc"))
        localStateBean.setDesc(((XmlPullParser)localObject).nextText());
    }
  }

  public class ComparatorSortListNum
    implements Comparator
  {
    public ComparatorSortListNum()
    {
    }

    public int compare(Object paramObject1, Object paramObject2)
    {
      Record_SoftBean localRecord_SoftBean1 = (Record_SoftBean)paramObject1;
      Record_SoftBean localRecord_SoftBean2 = (Record_SoftBean)paramObject2;
      return compare(localRecord_SoftBean1.getVisitedTime(), localRecord_SoftBean2.getVisitedTime());
    }
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.service.SoftLimitService
 * JD-Core Version:    0.6.2
 */